package com.leexuan.ordersystem.forms;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

public class ProductForm extends ActionForm {

	private int sid = 0;
	private int pid = 0;
	private int num = 0;

	private float price = 0;

	private String name = null;
	private String sname = null;
	private String model = null;
	private String number = null;

	public ProductForm() {
		super();
	}

	public void reset(ActionMapping mapping, HttpServletRequest request) {

		this.sid = 0;
		this.pid = 0;
		this.num = 0;
		this.price = 0;
		this.name = null;
		this.sname = null;
		this.model = null;
		this.number = null;
	}

	public int getSid() {
		return this.sid;
	}

	public int getPid() {
		return this.pid;
	}

	public int getNum() {
		return this.num;
	}

	public float getPrice() {
		return this.price;
	}

	public String getName() {
		return this.name;
	}

	public String getSname() {
		return this.sname;
	}

	public String getModel() {
		return this.model;
	}

	public String getNumber() {
		return this.number;
	}

	public void setSid(int sid) {
		this.sid = sid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public void setModel(String model) {
		this.model = model;
	}

}
